<?php

namespace App\Models\Enum;

/**
 * 充值状态
 */
class RechargeType
{
    const SINGLE = 1;
    const BATCH = 2;

    public static function get($type)
    {
        switch ($type) {
            case self::SINGLE:
                return '单人充值补偿';
            case self::BATCH:
                return '批量充值补偿';
            default:
                return '类型未定义';
        }
    }

    public static function getAll()
    {
        return [
            self::SINGLE => self::get(self::SINGLE),
            self::BATCH => self::get(self::BATCH),
        ];
    }
}